
#define NAME_MAX_LENGTH 10
#define PASS_LENGTH 10
#define FILE_NAME 50
#define MAX_USERS 20

#define O_CREATE 1
#define O_EXCL 2

#define USERS_FILE 	"/.info/.users"
#define SYSTEM_NAME	"system"
#define SYSTEM_GROUP	"system"
#define SYSTEM_PATH	"."
#define SYSTEM_PASS	"sys"

typedef struct User User;
struct User {
	char name[NAME_MAX_LENGTH];	
	char group[NAME_MAX_LENGTH];	
	char pass[PASS_LENGTH];	
	char path[FILE_NAME];
}__attribute__((packed));

typedef struct UsersInfo UsersInfo;
struct UsersInfo {
	unsigned int cant;
	User list[MAX_USERS];
}__attribute__((packed));

int logout(int argc, char* argv[]);

void login(void);

int newUser(int argc, char* argv[]);

int passwd(int argc, char* argv[]);

int group(int argc, char* argv[]);
